import riskClient from "./riskClient";

export const getAreaData = async (params) => {
  return await riskClient.postAsync({
    url: 'api/address/findRegion',
    params,
  })
}

export const riskAreaFind = async (params) => {
  return await riskClient.postAsync({
    url: 'api/riskArea/find',
    params,
  })
}

export const riskAreaAdd = async (params) => {
  return await riskClient.postAsync({
    url: 'api/riskArea/add',
    params,
  })
}

export const riskAreaEdit = async (params) => {
  return await riskClient.postAsync({
    url: 'api/riskArea/editSaveRiskArea',
    params,
  })
}

export const riskAreaDelete = async (params) => {
  return await riskClient.getAsync({
    url: 'api/riskArea/delete',
    params,
  })
}